<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <input type="text" v-model="something"><br>
        <!-- <input type="text" @input='changeIput' :value='something'><br> -->
        {{something}}
    </div>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                something: "哈哈哈"
            },
            methods: {
                changeIput(e) {
                    // console.log(e.target.value);
                    this.something = e.target.value;
                }
            },
        })
    </script>
</body>

</html>